import http from '../utils/request.js'

 

/**
 * 我的收益-礼物收益
 * 20200112 - con - 1
 */
export function getMyProfitGift({ showCount, currentPage, chooseTime }) {
  const using_date = chooseTime
  const wedding_time = chooseTime
    return http.post('myProfit/myProfitGift', {
      showCount, currentPage,  using_date , wedding_time
    });
}

/**
 * 我的收益-游戏收益
 */
export function getMyProfitGame({ chooseTime }) {
  const  wedding_time = chooseTime
  const  using_date = chooseTime
  return http.post('myProfit/myProfitGame', {
    wedding_time,using_date
  });
}

/**
 * 我的收益-邀请收益

 */
export function getMyProfitInviter({ currentPage, showCount, chooseTime }) {
  const wedding_time = chooseTime;
  const using_date = chooseTime;

  return http.post('myProfit/myProfitInviter', {
    currentPage, showCount, using_date, wedding_time
  });
}

/**
 * 我的收益-新增粉丝
 */
export function getMyProfitPerson({ currentPage, showCount, chooseTime }) {
  const wedding_time = chooseTime;
  const using_date = chooseTime;  
  return http.post('myProfit/myProfitPerson', {
    currentPage, showCount, using_date, wedding_time
  });
}
 

// giftDetailsHm

/**
 * 收益明细-礼物收益
 * currentPage: "1"
income_type: "gift"
splid: "8e007faaac1b484c84442ff3d59deaed"
preName: "gift"
showCount: "500"
 */
export function getGiftDetailList({ currentPage, showCount,  splid}) {

  // const preName ='gift'
  // const income_type ='gift'
  return http.$post('giftDetailsHm/giftIncomeList', {
     currentPage, showCount,  splid 
  });
}

/**
 * 收益明细-红包收益
  currentPage: "1"
giftid: "HBKD"
income_type: "hbkd"
splid: "8e007faaac1b484c84442ff3d59deaed"
showCount: "10"
sortGold: "2"
sortTime: "2"

2021-05-11 废弃
 */ 
export function  getHBDetailList({ currentPage, showCount, splid }) {

  // const giftid ='HBKD';
  // const income_type ='hbkd';
  const sortGold ='2';
  const sortTime ='2';
 
  return http.$post('giftDetailsHm/gameIncomeList', {
      sortGold, sortTime, currentPage, showCount, splid
  });
}

export function  getNewHBDetailList({ currentPage, showCount, splid }) {

  return http.$post('giftDetailsHm/hbyIncomeList', {
     currentPage, showCount, splid
  });
}

export function  getHBQDetailList({ currentPage, showCount, splid }) {

  // const earning_type ='1';
  // const order_by ='1';
 
  return http.$post('giftDetailsHm/hbqIncomeList', {
      currentPage, showCount, splid
  });
}

/**
 * 收益明细-猜宝箱收益
 * currentPage: "1"
income_type: "zjd"
splid: "8e007faaac1b484c84442ff3d59deaed"
showCount: "10"
sort: "1"
 */
export function getCBXDetailList({ currentPage, showCount, splid }) {

  
  return http.$post('giftDetailsHm/kbxIncomeList', {
    currentPage , showCount,splid 
  });
}

export function  getSuperDetailList({ currentPage, showCount, splid }) {

  // const earning_type ='1';
  // const order_by ='1';
 
  return http.$post('giftDetailsHm/superIncomeList', {
      currentPage, showCount, splid,
       "type":"Super_Bp"
  });
}
export function  getRaceDetailList({ currentPage, showCount, splid }) {

  // const earning_type ='1';
  // const order_by ='1';
 
  return http.$post('giftDetailsHm/raceIncomeList', {
      currentPage, showCount, splid,
  });
}

export function  getScoreDetailList({ currentPage, showCount, splid }) {
 
  return http.$post('giftDetailsHm/scoreIncomeList', {
      currentPage, showCount, splid,type: 'addScore'
  });
}
 

// 微信提现收益
export function getWXIncome({ currentPage, showCount }) {
  return http.$post('info/newLiveList', {
    currentPage , showCount
  });
}


/**
 * 合伙人收益
 */
export function getHhrInfo1( ) {
  return http.$post('hhr/getHhrInfo1', {
 
  });
}
 
/**
 * 合伙人月收益
 */
export function getHhrincominfo( {month}) {
  return http.$post('hhr/getHhrIncomMonth', {
    month
  });
}

/**
 * 合伙年收益
 */
export function getHhrIncomInfo( ) {
  return http.$post('hhr/getHhrIncomInfo', {
 
  });
}

// 重新发送礼物
export function resendGift(params) {
  return http.$post('huoDongHm/sendMsgToWs', params);
}

// 重新发送超级霸屏
export function resendSuperDanmu(params) {
  return http.$post('huoDongHm/sendSuperMsgToWs', params);
}

// 发送所有花钱的礼物
export function sendAllGift(splid) {
  return http.$post('huoDongHm/sendAllMsgToWs', {
    splid,
  });
}


// 获取嘉年华收益明细
export function getCarnivalDetailList({ currentPage, showCount, splid }) {
  return http.$post('giftDetailsHm/carnivalIncomeList', {
    currentPage,
    showCount,
    splid,
    type: 'carnival',
  });
}